package com.simple.crawler.constant;

public enum ExceptionCode {

    SPRING_NOT_INIT_COMPLETE("0001", "Spring未初始化完成"),
    JOB_NOT_INIT("0002", "JOB未初始化完成"),
    REQUEST_ERROR("0003", "请求错误"),
    REQUEST_FAIL("0004", "请求失败"),
    CONVERT_ERROR("0004", "请求失败");

    private String code;

    private String desc;

    ExceptionCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "ExceptionCode{" +
                "code='" + code + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

}
